const info = {
  url: 'https://baidu.com/abc',
  method: 'GET'
} as const
function request(url: string, method: 'GET' | 'POST') {
  console.info(url, method)
}
request(info.url, info.method)